<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html class="mumu-pc w1200">
<head>
<include file="public:head" />
<link rel=stylesheet type=text/css href="__STATIC__/taoyouhui/jky/css/view.css"/>
</head>
<body>
<include file="public:header" />

<div class="main w1100">
<div class="place-explain">
您的位置：<a target="_blank" href="{:C('itk_site_url')}">{:C('itk_site_name')}</a>
&nbsp;&gt;&nbsp;
<a target="_blank" href="{:U('index/cate', array('cid'=>$item['cate_id']))}">{$cate_data[$item['cate_id']]['name']}</a>
&nbsp;&gt;&nbsp;
<a class="bady-xx-seo" href="{:U('item/index',array('id'=>$item['id']))}">{$item.title}</a>
</div>
<div class="container fl">
<div class="product clear">
<div class="product-pic fl" data-id="44871164571">
<a href="{:U('jump/index',array('id'=>$item['id']))}" target="_blank" rel="nofollow" style="width:310px;height:310px;display:table-cell;"><img id="J_ImgBooth" width="310px;" src="{:attach(get_thumb($item['pic_url'], '_b'),'item')}" alt="{$item.title}"/></a> </div>
<style></style>
<div class="product-info fl">
<div class="product-title">
<h1>{$item.title}</h1>
 </div>
<p class="tips clear">
<span class="item-pr fl">市场价：<em class="old-price ffv">{$item.price}元</em></span>
<span class="fl">折扣：<em class="org_2 ffv">{$item.zk}折</em></span>
</p>
<p class="price">
<span class="title-tips01">折扣价</span>
<em class="org">￥</em>
<span class="jd-current">{$item.coupon_price}</span><if condition="$item.ems eq 1">/包邮</if></span>
</p>
<p class="goto" id="pricetrend"><s></s></p>
<div class="pg"></div>
<div class="item-btn clear">
<span class="btn-tip fl">
<if condition="$item.class eq 'start'">
	<a class="btn fl {$item.class}"><span>即将开始</span></a>
<elseif condition="$item.class eq 'gone'"/>
	<a class="btn fl {$item.class}"><span>已卖光</span></a>
<elseif condition="$item.class eq 'gone'"/>
	<a class="btn fl {$item.class}"><span>已结束</span></a>
<elseif condition="$item.class eq 'buy'"/>
	<if condition="$item.isq eq 1"> 
	 <a class="btn fl buy" href="{$hUrl}" target="_blank" rel="nofollow">
		<span>领券购买</span>
	 </a>
	 <else/>
		<a class="btn fl buy" href="{:U('jump/index',array('id'=>$item['id']))}" target="_blank" rel="nofollow">
			<eq name="item.shop_type" value="C"><span>去淘宝购买</span> </eq>
			<eq name="item.shop_type" value="M">去美丽说抢购购 </eq>
			<eq name="item.shop_type" value="B"><span>去天猫购买</span> </eq>
			
		</a>
	</if>
</if>
</span>
<div id="tq_html" class="tq_html"></div>
	<p class="price bady-time">
		<if condition="$item.class eq 'start' ">
		<span class="fl">开抢时间：</span>
			<span class="endtime time" data-time="{$item.coupon_start_time}" data-id="0" id="end_date_0"></span>
		<span class="common nomind shoot_time"><a href="http://qzs.qq.com/snsapp/app/bee/widget/open.htm#content=亲，您在 {:C('itk_site_name')} 关注的【{$item.title}】马上就要开始抢购了哦。&time={$item.coupon_start_time|date='20y-m-d H:i',###}&advance=5&url={$item.txurl}" target="_blank">设置提醒</a></span>
              <else />				  
             <if condition="$item.class eq 'gone' ">
				<span class="fl">结束时间：</span>
				<span class="endtime time" data-id="0" id="end_date_0" >{$item.coupon_start_time|date="m月d日 H时i分",###}</span>
				<span class="common nomind shoot_time"><a href="http://qzs.qq.com/snsapp/app/bee/widget/open.htm#content=亲，您在 {:C('itk_site_name')} 关注的【{$item.title}】下期活动马上就要开始了哦。&time={$item.coupon_end_time|date='20y-m-d H:i',###}&advance=5&url={$item.txurl}" target="_blank">下期提醒</a></span>	                	
			<else />
               <if condition="$item.class eq 'buy' ">
				<span class="fl">离结束还剩：</span>
				<span class="endtime time" data-time="{$item.coupon_end_time}" data-id="0" id="end_date_0" ></span>
     </if>	
      </if>
     </if>
	</p>
</div>
<div class="fenxiang">
<span class="fl">分享商品：</span>
<div id="bdshare" class="fl bdshare_t bds_tools get-codes-bdshare fl">
<a class="bds_sqq" rel="nofollow"></a>
<a class="bds_qzone" rel="nofollow"></a>
<a class="bds_tsina" rel="nofollow"></a>
<a class="bds_tqq" rel="nofollow"></a>
<a class="bds_renren" rel="nofollow"></a>
<a class="bds_taobao tjh" rel="nofollow"></a>
<span class="bds_more"></span>
<script type="text/javascript" id="bdshare_js" data="type=button"></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
							var bds_config = {
								'bdDesc' : '发现个灰常给力的商品！{$item.title}，赶紧来抢吧！',
								'bdText' : '发现个灰常给力的商品！{$item.title}，赶紧来抢吧！' ,
								'bdPic' : '{$item.pic_url}',
								'review' : 'off'
							};
							document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
						</script>
</div>
</div>
<h2 class="other_action">
<span class="source tao_t" title="天猫商城"></span>
<a class="keyword" target="_blank" href="{:U('index/cate', array('cid'=>$item['cate_id']))}">{$cate_data[$item['cate_id']]['name']}</a> 
<volist name="tags" id="tag">
<a class="keyword" href="{:U('search/index',array('k'=>($tag)))}" target="_blank">{$tag}</a>
</volist>
</h2>
<div class="share">
<a class="report" znid="{$item.id}" title="{$item.title}" href="javascript:;"><i class="report-icon"></i>举报</a>
</div>
</div>
<div class="fl" style="position: relative;width: 530px;">
<div id="container" class="quxian"> </div>
</div>
</div>
<div class="product-comment">
<div class="bady-tab" id="bady-tab">
<ul>
<li class="tab1">
<a rel="nofollow" class="badyactive" href="#desc">宝贝详情</a>
<div class="bady-line-top"></div>
</li>
<li class="tab2">
<a rel="nofollow" class="" href="#comm">消费保障
</a>
<div class=""></div>
</li>
<li class="tab3">
<a rel="nofollow" href="#xihuan" class="">猜你喜欢<em></em></a>
<div class=""></div>
</li>
<!--<li class="tab4">
<a rel="nofollow" href="#xihuan" class="">猜你喜欢<em></em></a>
<div class=""></div>
</li>-->
</ul>
<div class="gobuy fr" style="display: none; ">
<span class="title-tips01">折扣价格</span>
<p class="price fl">
<em class="org">￥</em>
<span class="jd-current">{$item.coupon_price}</span> <if condition="$item.ems eq 1">/包邮</if> </p>
<a target="_blank" id="dealGone" class="btn fl buy" href="{:U('jump/index',array('id'=>$item['id']))}" rel="nofollow"><span>
<if condition="$item.shop_type eq 'C' ">去淘宝购买</if> <if condition="$item.shop_type eq 'M' ">去美丽说抢购购</if> <if condition="$item.shop_type eq 'B' ">去天猫购买</if> </span></a>
</div>
</div>
<div class="information" style="display: block;">
<h3><a rel="nofollow" name="desc">商品描述</a></h3>
<p><p></p></p>
<p><p>
<script>window.TBDetail = (window.TBDetail || {});
window.TBDetail.data = {itemId:{$item.num_iid},sellerId:{$item.sellerId}}</script>
<div id="nodesc">{$item.desc}</div>
<script class="lazy" data-original="http://g.alicdn.com/i/popshop/0.0.23/p/seemore/load.js?c"></script>
</p></p>
</div>
<div class="bady-tab bady-tab01">
<ul>
<li style="border-right: none">
<a rel="nofollow" name="comm" href="#tab2">消费保障</a>
<div class=""></div>
</li>
</ul>
</div>
<div style="display: block;" class="information comment">
<div class="info-parameter comment-dis">
<div class="item-comment"></div>
				<div class="information" style="padding-top: 0px;">
					<div class="xiaobao">
						<div class="xb_icon">
							<a class="xb_s xb_s1" href="javascript:;">商家审核</a>
							<a class="xb_s xb_s2" href="javascript:;">买手砍价</a>
							<a class="xb_s xb_s3" href="javascript:;">验货质检</a>
							<a class="xb_s xb_s4" href="javascript:;">价格监控</a>
							<a class="xb_s xb_s5" href="javascript:;">全国包邮 </a>
							<a class="xb_s xb_s6" href="javascript:;">七天退换</a>
							<a class="xb_s xb_s7" href="javascript:;">闪电发货</a>
						</div>
					</div>
					<div class="xb_js">
						<div class="steup steup_01" style="display: none;"></div>
						<div class="steup steup_02" style="display: block;"></div>
						<div class="steup steup_03" style="display: none;"></div>
						<div class="steup steup_04" style="display: none;"></div>
						<div class="steup steup_05" style="display: none;"></div>
						<div class="steup steup_06" style="display: none;"></div>
						<div class="steup steup_07" style="display: none;"></div>
						<em class="jiao"></em>
					</div>
				</div>
</div>
</div>

<div class="bady-tab bady-tab02">
<ul>
<li style="border-right: none;">
<a rel="nofollow" name="user_comment" class="" href="#tab3"></a>
<div class=""></div>
</li>
</ul>
</div>

<a rel="nofollow" name="xihuan"></a>
</div>
</div>
<style></style>

<div class="jiu_right normal_right fr">
<div class="exchange_info theysays">
<h3><span>热门品牌</span></h3>
<ul class="relation_brands clearfix">
<item type="hotbrand" num="10" order="id desc">
<volist name="data" id="item">
<li><a href="{:U('brand/view',array('id'=>$item['id']))}" target="_blank"><img src="{$item.logo}" alt="{$item.title}">{$item.title}</a></li>
</volist>
</item>
</ul>
</div>
<div class="exchange_info theysays double-info">
<h3><span>今日人气排行</span></h3>
<ul class="top5">
<volist name="trank" id="vo">
<li>
<i class="no{$i}"></i>
<a target="_blank" href="{:U('item/index',array('id'=>$vo['id']))}" rel="nofollow"><img target="_blank" src="{$vo.pic_url}" alt="{$vo.title}"></a>
<p class="detail_pro_title">
<span class="title">
<a target="_blank" href="{:U('item/index',array('id'=>$vo['id']))}" rel="nofollow">￥{$vo.coupon_price}</a>
</span>
<php> $zk = round(($vo['coupon_price']/$vo['price'])*10, 1);  </php>
<span class="price"><del>{$vo.price}元</del>{$zk}折</span>
</p>
</li>
</volist>
</ul>
<a href="/quan.html" target="_blank" class="get_more" rel="nofollow">查看更多&gt;&gt;</a>
</div>
</div>
<div class="clear"></div>
</div>
<link rel=stylesheet type=text/css href="__STATIC__/taoyouhui/itaoke/css/good.css"/>
 
<div class="main w1100 clear">
<style>.goods-list li .wap{background:#DB679B;color:#fff;position:absolute;top:271px;right:9px;width:114px;z-index:3;text-align:center;}.goods-list li .wap .wap_ewm{background:#fff;color:#000;}.goods-list li .wap p{display:none;height:15px;padding-top:2px;}.goods-list li .wap img{display:none;width:114px;}.goods-list li:hover .wap p,.goods-list li:hover .wap img{display:block;}.goods-list li:hover .wap{top:140px;}.goods-list li .list-good .a-quan{position:absolute;right:3px;top:0;display:block;width:55px;height:59px;padding-top:3px;background:url('__STATIC__/taoyouhui/images/i-quan.png') no-repeat;}.goods-list li .list-good .a-quan .em_w{float:left;width:55px;line-height:16px;text-align:center;color:#fff;}</style>
<ul class="goods-list w1100">
<volist name="random" id="item" mod="4">
<li class="<eq name='mod' value='3'> last</eq>">
<div class="sid_2976521057 list-good buy " id="nid_{$item.id}">
<div class="good-pic">
<a rel="nofollow" href="{:U('item/index',array('id'=>$item['id']))}" target="_blank"><img src='__STATIC__/taoyouhui/jky/images/blank.gif' data-original="{$item['pic_url']}" alt="{$item['title']}" class="lazy"/></a> <div class="yhq"> </div>
</div>
<h5 class="good-title">
<b><if condition="$item.ems eq 1">【包邮】</if></b><a href="{:U('item/index',array('id'=>$item['id']))}" target="_blank">{$item.title}</a> </h5>
<div class="good-price">
<span class="price-current"><em>￥</em>{$item.coupon_price}</span>
<span class="des-other">
<php>$zk=round($item['coupon_price'] / $item['price'] * 10, 1);</php>
<span class="price-old"><em>¥{$item.price}</em><u>({$zk}折)</u> </span>
<span class="discount show" style="position: absolute;">
已售<font style="font-weight: bold;"><if condition="$item.volume gt 10000">{$item.volume|vmwan}<else />{$item.volume}</if></font>件
</span>
</span>
<div class="btn   buy">
<a rel="nofollow" href="{:U('item/index',array('id'=>$item['id']))}" target="_blank" rel="nofollow"> <em class="m-icon"></em><span><if condition="$item.shop_type eq 'C' ">淘宝<else/>天猫</if></span>
</a>
<span id="leftTime0" style="display:none"></span>
</div>
</div>
<if condition="$item.isq eq 1">
<a class="a-quan" href="{$item.quanurl}" target="_blank">
<em class="em_w">领券立</em>
<em class="em_w">减{$item.quan}元</em>
</a> 
</if>
<if condition=" ($item['add_time'] egt strtotime(date('Y-m-d')) ) and ( $item['add_time'] elt strtotime(date('Y-m-d',strtotime('+1 day'))) )">
<span class="newicon tag-icon new">今日新品</span>
</if>
<span class="mark"></span>
<span class="wico"></span>
</div>
</li>
</volist>
</ul>
<div class="clear"></div>
</div>
 
<script type="text/javascript">

$(function(){
    $('.report').jumpBox({
		title: '举报',
		LightBox:'show',
		width:520,
		height:200,
		defaultContain:1,
		jsCode:'{$("#ju_form #znid").val($(this).attr("znid"))}{$("#ju_form #ju_title").html($(this).attr("title"))}'
    });
	$("#reportAn").on('change', function() {
		if($(this).val()==99) {
			$(".other").show();
		} else {
			$(".other").hide();
		}
	});
});
function report(t){
	var $form = $('#ju_form');        
	var query=$form.serialize();
	var url=$form.attr('action');
	var ju_report = $form.find('#reportAn').val();
	var ex_report = $form.find('#otherReasons').val();
	if(ju_report == 0){
		alert('请选择举报原因');
		$form.find('#reportAn').focus();
		return false;
	}
	if(ju_report == 99){
		if(ex_report == '' || ex_report.length>140){
			alert('请在140字以内说明理由');
			$('#otherReasons').focus();
			return false;
		}
	};
	$.ajax({
		url: '/?c=ajax&a=report',
		data:query,
		jsonp:"callback",
		success: function(data){
			if(data.status==0){
				alert(data.msg);
			}
			else if(data.status==1){
				alert('举报成功');
				location.replace(location.href);
			}
		}
	});
	return false;
}
</script>
<div id="dhFormHtml">
<div class="alert_fullbg" id="LightBox"></div>
<div class="alert_bg alert_report" id="jumpbox" show="0">
<div class="alert_box">
<div class="alert_top"><span class="title"></span><a class="close" href="javascript:;"></a></div>
<div class="alert_content">
<div class="l_c_l">
<form id="ju_form" name="ju_form" method="post" onsubmit="return report(this)">
商品名称：<span id="ju_title"></span><br/>
举报原因：
<select name="reportAn" id="reportAn" class="selectClass">
<option value="0">请选择举报原因</option>
<option value="1">商品已下架</option>
<option value="2">商品已卖光</option>
<option value="4">商品链接不正确</option>
<option value="5">商品分类错误</option>
<option value="6">商品价格与活动价格不符合</option>
<option value="7">卖家拒绝发货</option>
<option value="8">商品描述有误</option>
<option value="99">其它原因</option>
</select>
<br/>
<label class="other" style="display:none">
其它原因： <input type="text" name="otherReasons" class="text" id="otherReasons"/><br/>
</label>
<input type="hidden" id="znid" name="znid" value="1"/>
<input class="smt" type="submit" id="ju_submit" tabindex="3" value="提 交"/>
</form>
</div>
</div>
<div class="bottom">注：为保证您的合法权益，请如实填写您所遇到的情况。</div>
</div>
</div>
</div>
<script type="text/javascript">
function show_date_time(end,style,id){
	today=new Date(); 
	timeold=((end)*1000-today.getTime()); 
	if (timeold < 0) {
		$("#end_date_"+id).html("已结束!");
		return;
	}
	window.setTimeout("show_date_time("+end+','+style+','+id+")", 100); 
	sectimeold=timeold/1000;
	secondsold=Math.floor(sectimeold); 
	msPerDay=24*60*60*1000;
	e_daysold=timeold/msPerDay;
	daysold=Math.floor(e_daysold); 
	e_hrsold=(e_daysold-daysold)*24;
	hrsold=Math.floor(e_hrsold); 
	e_minsold=(e_hrsold-hrsold)*60;
	minsold=Math.floor((e_hrsold-hrsold)*60); 
	e_seconds = (e_minsold-minsold)*60;
	seconds=Math.floor((e_minsold-minsold)*60); 
	ms = e_seconds-seconds;
	ms = new String(ms);
	ms1 = ms.substr(2,1);
	ms2 = ms.substr(2,1);
	hrsold1=daysold*24+hrsold;
	if(style == 1){
		$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"秒");
	}else if(style == 2){
		if(daysold>0){
			$("#end_date_"+id).html("<i>"+daysold+"</i>天<i>"+(hrsold<10?'0'+hrsold:hrsold)+"</i>时<i>"+(minsold<10?'0'+minsold:minsold)+"</i>分<i>"+(seconds<10?'0'+seconds:seconds)+"."+ms2+"</i>秒");
		}else{
			$("#end_date_"+id).html("<i>"+(hrsold<10?'0'+hrsold:hrsold)+"</i>时<i>"+(minsold<10?'0'+minsold:minsold)+"</i>分<i>"+(seconds<10?'0'+seconds:seconds)+"."+ms2+"</i>秒");
		}
	}else if(style == 3){
		$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"."+ms1+"秒");
	}else if(style == 4){
		if(daysold>0){
			$("#end_date_"+id).html(daysold+"天"+(hrsold<10?'0'+hrsold:hrsold)+"时"+(minsold<10?'0'+minsold:minsold)+"分");
		}else{
			$("#end_date_"+id).html((hrsold1<10?'0'+hrsold1:hrsold1)+"小时"+(minsold<10?'0'+minsold:minsold)+"分");
		}
	}else{
		$("#end_date_"+id).html(daysold+"天"+(hrsold<10?'0'+hrsold:hrsold)+"小时"+(minsold<10?'0'+minsold:minsold)+"分"+(seconds<10?'0'+seconds:seconds)+"秒."+ms2);
	}
}
$(".endtime").each(function() {
        var reg = /^[0-9]+$/;
        var time = $(this).attr('data-time');
	var id = $(this).attr('data-id');
        if (reg.test(time)) {
            show_date_time(time, 2, id);
        }
}); 

function formatDate(time) {
	var now = new Date(time * 1000);
	var month = now.getMonth() + 1;
	var day = now.getDate();
	return month + "/" + day;
}

num=140;
$('#comment').bind('focus keyup input paste',function(){  //采用几个事件来触发（已增加鼠标粘贴事件）   
	$('#num').text(num-$(this).attr("value").length)  //获取评论框字符长度并添加到ID="num"元素上  
});
function saveComment(){
	var commentNum=$('#comment').val().length;
	var commentTip = '你也可以顺便说点什么 O(∩_∩)O';
	if(commentNum==''){
		alert('评论内容不能为空');
	}
	else if(commentNum>num){
		alert('评论字数不能大于140个字');
	}
	else if(commentNum<10){
		alert('评论字数不能小于10个字');
	}
	else{
		var comment=$('#comment').val();
		var thsId=531437882423;
		if(comment==commentTip || comment==''){
		    alert(errorArr[27]);
		}
		else{
			$.ajax({
				url: '/ajax/comment.htm',
				data:{'ths_id':thsId,'comment':comment},
				dataType:'jsonp',
				jsonp:"callback",
				success: function(data){
					//alert(data);
					if(data.s==0){
			    		alert(errorArr[data.id]);
						if(data.id==33){
				    		helpWindows('两次评论间隔要大于24小时','小助手');
						}
					}
					else if(data.s==1){
						alert('评论成功');
			    		location.replace(location.href);
					}
				}
			});
		}
	}
}
</script>
<script type="text/javascript" src="__STATIC__/taoyouhui/jky/js/deal.js"></script>
<script type="text/javascript">
    $(".bady-tab:eq(0) li:eq(0)").find("a").addClass("badyactive");
    $(".bady-tab:eq(0) li:eq(0)").find("div").addClass("bady-line-top");
    //评论处js切换效果
    $(".bady-tab:eq(0) li").click(function(){
        $(document).scrollTop($('.bady-part').offset().top-50);
        $(".bady-tab").not( $(".bady-tab:eq(0)")).hide();
        $(this).parents("ul").find("a").removeClass("badyactive");
        $(this).parents("ul").find("div").removeClass("bady-line-top");
        $(this).find("a").addClass("badyactive");
        $(this).find("div").addClass("bady-line-top");
        if($(this).index() == 0){
            $(".bady-tab,.information").show();
            if($(".bady-tab").size() - $(".information").size() == 1){
                $(".bady-tab01").hide();
            }else if($(".bady-tab").size() - $(".information").size() == 2){
                $(".bady-tab01").hide();
                $(".bady-tab02").hide();
            }
        }else{
            $(".information").hide();
            $(".information:eq("+$(this).index()+")").show();
        }
    });

    $(".bady-tab:eq(0) li").each(function(index){
        if(typeof($(this).attr("name"))!="undefined"){
            $("#"+$(this).attr("name")).click();
            $("#"+$(this).attr("name")).parents("ul").find("a").removeClass("badyactive");
            $("#"+$(this).attr("name")).parents("ul").find("div").removeClass("bady-line-top");
            $("#"+$(this).attr("name")).find("a").addClass("badyactive");
            $("#"+$(this).attr("name")).find("div").addClass("bady-line-top");
        }
    });

    var F_jkyCeleMenuAni = function(){
        var jiuMenuObj = $('#bady-tab');
        var Tab01Obj= $('.tab1').find("a")
        var Tab02Obj= $('.tab1').find("div")
        var Tab03Obj= $('.tab2').find("a")
        var Tab04Obj= $('.tab2').find("div")
        var Tab05Obj= $('.tab3').find("a")
        var Tab06Obj= $('.tab3').find("div")
	var Tab07Obj= $('.tab4').find("a")
        var Tab08Obj= $('.tab4').find("div")
        var menuScrolFunc = function(){
            scrolY = $(window).scrollTop();
            if(scrolY < 580){
                jiuMenuObj.removeClass('fixed');
                $('div.gobuy').hide();
            }else{
                jiuMenuObj.addClass('fixed');
                $('div.gobuy').show();
            }
            if(scrolY >=$('.goods-list').offset().top && !($(".information:eq(0)").is(":hidden"))){
		Tab05Obj.removeClass("badyactive");
                Tab06Obj.removeClass("bady-line-top");
                Tab03Obj.removeClass("badyactive");
                Tab04Obj.removeClass("bady-line-top");
                Tab01Obj.removeClass("badyactive");
                Tab02Obj.removeClass("bady-line-top");
                Tab07Obj.addClass("badyactive");
                Tab08Obj.addClass("bady-line-top")
            }else if(scrolY >=$('.bady-tab02').offset().top && !($(".information:eq(0)").is(":hidden"))){
	        Tab07Obj.removeClass("badyactive");
                Tab08Obj.removeClass("bady-line-top");
                Tab03Obj.removeClass("badyactive");
                Tab04Obj.removeClass("bady-line-top");
                Tab01Obj.removeClass("badyactive");
                Tab02Obj.removeClass("bady-line-top");
                Tab05Obj.addClass("badyactive");
                Tab06Obj.addClass("bady-line-top")
            }else if(scrolY >= $('.bady-tab01').offset().top && !($(".information:eq(0)").is(":hidden"))){
	        Tab07Obj.removeClass("badyactive");
                Tab08Obj.removeClass("bady-line-top");
                Tab01Obj.removeClass("badyactive");
                Tab02Obj.removeClass("bady-line-top");
                Tab05Obj.removeClass("badyactive");
                Tab06Obj.removeClass("bady-line-top");
                Tab03Obj.addClass("badyactive");
                Tab04Obj.addClass("bady-line-top")
            }else if(!($(".information:eq(0)").is(":hidden"))){
	        Tab07Obj.removeClass("badyactive");
                Tab08Obj.removeClass("bady-line-top");
                Tab03Obj.removeClass("badyactive");
                Tab04Obj.removeClass("bady-line-top");
                Tab05Obj.removeClass("badyactive");
                Tab06Obj.removeClass("bady-line-top");
                Tab01Obj.addClass("badyactive");
                Tab02Obj.addClass("bady-line-top")
            }
        }
        var F_nmenu_scroll = function () {
            if (!window.XMLHttpRequest) {
                return;
            }else{
                //默认执行一次
                menuScrolFunc();
                $(window).bind("scroll", menuScrolFunc);
            }
        }
        F_nmenu_scroll();
    }
    F_jkyCeleMenuAni();
</script>
<script type="text/javascript">
//    $(function () {
    	var num_iid = {$num_iid};
    	var image = new Array();
    	var nodesc = {$nodesc};
		if(nodesc==1){
			getiteminfo(num_iid);
		}
	    //采集宝贝详情的图片内容
	    function getiteminfo(itemid) {
	        $.ajax({
	            url: "https://hws.m.taobao.com/cache/mtop.wdetail.getItemDescx/4.1/?data=%7Bitem_num_id%3A" + itemid + "%7D&type=jsonp&dataType=jsonp",
	            dataType: 'jsonp',
	            jsonp: 'callback',
	            success: function (result) {
	                if (result.ret[0] == "SUCCESS::接口调用成功") {
	                    var len = result.data.images.length;
	                    for (var i = 0; i < len; i++) {
	                        image[i] = '<img class="lazy" src="' + result.data.images[i] + '">';
	                    }

	                    document.getElementById("nodesc").innerHTML = image; 
	                    upDesc(image,{$id});
	                } else {
	                    $("#nodesc").html("宝贝数据调用失败，原因：" + result.ret[0]);
	                }
	            }
	        });
	    }
	    //更新后台
	    function upDesc(image,id){
			 $.ajax({
			     data:{'image':image,'id':id},
			     type:'post',
			     url:"{:U('Item/ajaxUpItemDesc')}",
			     success:function(data){	    	
			     }
		    });
	    }
 //   })
</script>
<include file="public:footer" />
</body>
</html>